/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2025-02-15 20:07:31
 * @LastEditTime: 2025-02-18 00:04:16
 * @FilePath: /monitor_belt/src/utils/dictionary.ts
 */
export enum DetectEvent{
    ONLINE = -1,
    NORMAL = 0,
    TEAR = 1,
    WARN = 2,
    CTRL = 3
}
export const DetectList = [
    {
        label:'无红外光',
        value:DetectEvent.ONLINE,
        status:'off'
    },
    {
        label:'正常运行',
        value:DetectEvent.NORMAL,
        status:'success'
    },
    {
        label:'皮带撕裂',
        value:DetectEvent.TEAR,
        status:'warning'
    },
    {
        label:'异常突起',
        value:DetectEvent.WARN,
        status:'error'
    },
    {
        label:'下控PLC',
        value:DetectEvent.CTRL,
        status:'waiting'
    },
]

export enum MotorState{
    FAULT = -1,
    STOPPED = 0,
    RUNNING = 1,
    IDLE = 2
}
export const MotortList = [
    {
        label:'电机故障',
        value:"FAULT",
        status:'warning'
    },
    {
        label:'停机',
        value:"STOPPED",
        status:"error"
    },
    {
        label:'运行中',
        value:"RUNNING",
        status:'success'
    },
    {
        label:'暂停中',
        value:"IDLE",
        status:'waiting'
    }
]
// 预警类型
export const alarmTypes = [
    {
        label:'检测光不可见',
        value:-1,
    },
    {
        label:'未检测到异常',
        value:0,
        disabled:true
    },
    {
        label:'潜在撕裂',
        value:1
    },
    {
        label:'皮带突起',
        value:2
    },
    {
        label:'下控PLC',
        value:3
    }
]
export enum AlarmStatusEnum{
    CONFIRM=0,
    UNCONFIRM=1
}
//确认状态
export const alarmStatus = [
    {
        label:'已确认',
        value:AlarmStatusEnum.CONFIRM,
        status:'success'
    },
    {
        label:'未确认',
        value:AlarmStatusEnum.UNCONFIRM,
        status:'warning'
    }
]

export enum CommunicationStatus {
    ERROR=0,
    SUCCESS=1
}